package com.situ.mall.admin.controller;

import com.situ.mall.common.util.RequestUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/")
public class LogoutController {
    //退出登录
    @GetMapping("logout")
    public String logout(){
        RequestUtil.getSession().removeAttribute("currentUser");
        return "login";
    }
}
